package com.macro.mall.tiny.modules.foster.model;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuyi
 * @since 2024-03-27
 */
@Data
@ApiModel(value = "Pet对象", description = "寄养宠物对象")
public class Pet implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("宠物名")
    private String name;

    @ApiModelProperty("宠物种类")
    private String type;

    @ApiModelProperty("宠物年龄")
    private Integer age;

    @ApiModelProperty("主人id")
    private Long userId;

    @ApiModelProperty("图片")
    private String pictureUrl;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date startTime;

    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date endTime;

    @ApiModelProperty("是否过期，0没过期，1已过期")
    @TableField(exist = false)
    private Integer isValid;

    @ApiModelProperty("房间id")
    @TableField(exist = false)
    private Long roomId;
}
